import React from 'react';
import { initGlobalState, MicroAppStateActions } from 'qiankun';

class Page404 extends React.Component {
  constructor(props) {
    super(props);
    console.log(props);
  }

  state = {
    microAppLoading: false,
  };

  // Initialize state
  actions: MicroAppStateActions = initGlobalState(this.state);

  componentDidMount() {
    console.log('Page404----componentDidMount');
    // 登录成功后，设置 token
    this.actions.setGlobalState(this.state);
  }

  render() {
    return <div>404页面</div>;
  }
}

export default Page404;
